fun foo() {
    if (a) {
<selection>        <caret>f()
</selection>        g()
    }
}